home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / memtest86+.postinst < prev    next >
Encoding:
Text File  |  2009-03-27  |  533 b   |  24 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # offer to run LILO
  5. # (adapted from snippet by chr.ohm@gmx.net)
  6. if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && 
  7.     [ "${DEBIAN_FRONTEND}" != "noninteractive" ] &&
  8.     grep "image.*=.*/boot/memtest86+.bin" /etc/lilo.conf >/dev/null
  9. then
  10.     echo "You seem to have an entry for memtest86+ in /etc/lilo.conf."
  11.     printf "Run lilo now [y/N]? "
  12.     read c
  13.     if [ "$c" = "y" ] || [ "$c" = "Y" ]
  14.     then
  15.     lilo
  16.     fi
  17. fi
  18.  
  19. if [ "$1" = "configure" ] && [ -x "`which update-grub2 2>/dev/null`" ] ; then
  20.     update-grub2
  21. fi
  22.  
  23.  
  24.